<template>
  <div v-html="state.content"></div>
</template>

<script setup>
import { getNews } from "../api/mockApi.js";
import { onMounted, reactive } from 'vue'
const state = reactive({
  content:null
})
onMounted(() => {
  getNews().then(res=>{
    state.content = res
  })
})
</script> 

<style lang="less" scoped>

</style>